package main

import (
	grpc2 "google.golang.org/grpc"
	"week41/common/consul"
	"week41/common/grpc"
	"week41/common/nacos"
	"week41/service/appconfig"
	"week41/service/inits"
	"week41/service/internal"
)

func main() {
	appconfig.Init()
	nacos.NaCos()
	consul.Consul()
	inits.MysqlInit()
	inits.RedisInit()

	grpc.RegisterGrpc("127.0.0.1", 9991, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
